package com.book.result;

public enum ResultEnum {

     USERNAME_PASSWORD_NOT_NULL("1","用户名或密码不能为空"),
     LOGIN_SUCCESS("2","登录成功"),
     USERNAME_PASSWORD_ERROR("3","用户名或密码错误"),
     SUCCESS("4","操作成功"),
     LOGIN_ERROE("5","TOKEN无效"),
     FAIL("6","操作失败"),
     REVIEE_FAILED("7","商家审核未通过"),
     VIOLATIONS("8","商家违反规定,已被关闭"),
     SENDMESSAGE_SUCCESS("9","验证码发送成功"),
     ADD_CART_SUCCESS("10","加入购物车成功"),
     REFUND_SUCCESS("11","退款成功"),
    REFUND_ERROR("12","退款失败"),
     SAME_ERROR("13","相同批次号不能重复退款"),
     SECKILL_REQUECT("14","当前秒杀请求过多,请稍后重试"),
     SECKILL_SUCCESS("15","秒杀成功"),
     SECKILL_END("16","秒杀结束"),
     NUM_NOT("17","库存不足");

    private String code;
    private String msg;

    ResultEnum() {
    }

    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
